﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QuanLyThuVien.Presentation
{
    public partial class frmMain : Form
    {
        public frmMain()
        {
            InitializeComponent();
        }

        private void thốngKêSáchToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            frmTKeSach frm = new frmTKeSach();
            frm.ShowDialog();
        }

        private void đăngKíToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            frmDangKi frm = new frmDangKi();
            frm.ShowDialog();
        }

        private void đăngNhậpToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            frmDangNhap frm = new frmDangNhap();
            frm.ShowDialog();
        }

        private void toolStripMenuItem2_Click(object sender, EventArgs e)
        {
            frmThongTinTG frm = new frmThongTinTG();
            frm.ShowDialog();
        }

        private void quảnLýĐộcGiảToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmQLDocGia frm = new frmQLDocGia();
            frm.ShowDialog();
        }

        private void tìmKiếmSáchToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            frmTKSach frm = new frmTKSach();
            frm.ShowDialog();
        }

        private void tìmKiếmĐộcToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmTKDocGia frm = new frmTKDocGia();
            frm.ShowDialog();
        }

        private void thốngKêĐộcGiảToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmTKeDocGia frm = new frmTKeDocGia();
            frm.ShowDialog();
        }

        private void quảnLýThẻThưViệnToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmQuanLyTheThuVien frm = new frmQuanLyTheThuVien();
            frm.ShowDialog();
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            string ch = lbHeThong.Text;
            lbHeThong.Text = lbHeThong.Text.Substring(1, lbHeThong.Text.Length - 1);
            lbHeThong.Text += ch.Substring(0, 1);
        }

        private void toolStripMenuItem1_Click_1(object sender, EventArgs e)
        {
            frmThongTinNXB frm = new frmThongTinNXB();
            frm.ShowDialog();
        }

        private void quảnLýSáchToolStripMenuItem2_Click(object sender, EventArgs e)
        {
            frmQLDauSach frm = new frmQLDauSach();
            frm.ShowDialog();
        }

        private void quảnLýĐầuSáchToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmQuanLySach frm = new frmQuanLySach();
            frm.ShowDialog();
        }

        private void quảnLýMượnSáchToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmQuanLyMuonSach frm = new frmQuanLyMuonSach();
            frm.ShowDialog();
        }

        private void quảnLýTrảSáchToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmQuanLyTraSach frm = new frmQuanLyTraSach();
            frm.ShowDialog();
        }

    }
}
